#include <stdio.h>


//本地持久化:程序的数据进行保存和读取
int main()
{
    FILE* f = fopen("./telephone.txt","r");
    if(f == NULL) //打开文件失败：读的时候文件不存在   权限不够
    {
        printf("文件打开失败\n");
        return -1;
    }
    // char *name = "zhangsan";
    // char *tele = "12346789";
    // fprintf(f,"name=%s  tele=%s\n",name,tele);
    char name[20] = {0};
    char tele[20] = {0};
    fscanf(f,"name=%s  tele=%s\n",name,tele);
    printf("name=%s  tele=%s\n",name,tele);
    fclose(f);
    return 0;
}